Method and system for optimizing quantization for noisy channels

ABSTRACT

Methods are described for configuring a quantizer to achieve improved end-to-end distortion performance when transmitting encoded source data over a noisy channel. The codebook and partitioning are selected using an iterative process of determining an updated codebook and an updated partition space, where the updated codebook is based, in part, on the average symbol error probability of the channel. Complete knowledge of the transitional probabilities of the channel is not required. Variants of the iterative process are described.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application claims priority to U.S. provisional Ser. No. 61/028,956, filed Feb. 15, 2008, and is a continuation of U.S. non-provisional application Ser. No. 12/371,127 filed Feb. 13, 2009, and the contents of both applications are hereby incorporated by reference.

FIELD

The present application relates to methods and systems for optimizing quantization for noisy channels and, in particular, to quantizers and methods of configuring quanitizers for noisy channels.

BACKGROUND

A fundamental topic in joint source channel coding is the design and analysis of optimal noisy channel quantization, which generally includes two parts: a vector quantizer (VQ) and an index assignment mapping. In this context the goal of optimization is to minimize the average end-to-end distortion (EED) of the system by properly designing the VQ and index assignment mapping. Given the complete knowledge of a channel, i.e., all transitional probabilities from channel input symbols to channel output symbols, both the VQ and index assignment mapping will impact on the EED.

Previously, the design and analysis of optimal noisy channel quantization were treated separately to a large extent. For example, given the complete knowledge of a channel and a fixed index assignment mapping, two necessary conditions were derived for a VQ to minimize the EED: see H. Kumazawa, M. Kasahara, and T. Namekawa, “A construction of vector quantizers for noisy channels”, Electronics and Engineering in Japan, Vol. 67-B, No. 4, pp. 39-47, 1984. These two conditions, in general, depend on all transitional probabilities from channel input symbols to channel output symbols and the fixed index assignment mapping, making it difficult to analyze the performance of the corresponding VQ and tandem system. Indeed, the two conditions reveal no new structural information about the optimal noisy channel VQ itself beyond the conventional centroid condition and nearest neighbor condition for a noiseless channel VQ: see S. Lloyd, “Least squares quantization in PCM”, IEEE Trans. on Information Theory, Vol. IT-28, No. 2, pp. 129-137, March 1982; J. Max, “Quantizing for minimum distortion,” IRE Transactions on Information Theory, Vol. IT-6, pp. 7-12, March 1960. The performance of VQs designed by an iterative algorithm based on these two conditions (which may be referred to as the KKN algorithm or the Lloyd-Max algorithm) is very sensitive to the variation of channel conditions.

On the other hand, instead of working with a fixed index assignment mapping, Zeger and Manzella investigated the case of random index assignment, where the mapping from the quantization codebook with size N to N channel symbols is chosen from the set of all N! permutations randomly and uniformly, and derived a few high rate asymptotic performance results on noisy channel quantization: K. Zeger, and V. Manzella, “Asymptotic bounds on optimal noisy channel quantization via random coding”, IEEE Trans. on Information Theory, Vol. 40, No. 6, pp. 1926-1938, November 1994. However, the analysis was carried out based on the assumption that the VQ itself is optimized without considering the channel noise, although VQs jointly designed with the channel conditions have a performance gain over VQs optimized without reference to the channel conditions. As a result, the analysis by Zeger and Manzella did not shed light on how to design optimal noisy channel VQs jointly with the channel conditions. Other related works in joint source channel coding have studied noisy channel quantization mainly from the index assignment point of view.

It would be advantageous to provide new methods for optimizing vector quantizers for noisy channels and the quantizers resulting therefrom.

BRIEF DESCRIPTION OF THE DRAWINGS

Reference will now be made, by way of example, to the accompanying drawings which show example embodiments of the present application, and in which:

FIG. 1 shows a block diagram of a tandem source channel coding system;

FIG. 2 shows, in flowchart form, an example method of configuring a quantizer; and

FIG. 3 shows a graph for a partition and codebook at a step in the iterative process for configuring the quantizer.

Similar reference numerals may have been used in different figures to denote similar components.

DESCRIPTION OF EXAMPLE EMBODIMENTS

In one aspect, the present application describes a method for configuring a quantizer to be used for quantizing a source vector z for transmission over a noisy channel, the quantizer being configured to perform quantization within a space partitioned into N regions, each region being represented by a quantization codeword z_(i). The method includes determining an average symbol error probability for the noisy channel; selecting an initial set of quantization codewords and an initial partition of the space into N regions; calculating an updated set of the quantization codewords z₁ to z_(N), based on the partition of the space and on the average symbol error probability; calculating an updated partition of the space into the N regions using the updated set of quantization codewords; iteratively repeating the calculation of the updated set of the quantization codewords and the updated partition of the space until a threshold is met; and configuring the quantizer to perform quantization, after the threshold is met, using the updated partition of the space and the updated set of quantization codewords.

In another aspect, the present application describes a transmitter for transmitting media to a remote location over a noisy channel, wherein the media is a source vector z. The transmitter includes a quantizer configured to receive and quantize the source vector z within a space partitioned into N regions, each region being represented by a quantization codeword z_(i), thereby producing a quantized source; an index assignment module configured to encode the codewords of the quantized source as symbols in accordance with an index assignment, thereby producing an encoded quantized source for transmission over the noisy channel; and a quantizer optimization module configured to select the quantization codewords and the partitioning of the space. The optimization module is configured to determine an average symbol error probability for the noisy channel, select an initial set of quantization codewords and an initial partition of the space into N regions, calculate an updated set of the quantization codewords z₁ to z_(N), based on the partition of the space and on the average symbol error probability, calculate an updated partition of the space into the N regions using the updated set of quantization codewords, iteratively repeat the calculation of the updated set of the quantization codewords and the updated partition of the space until a threshold is met, and configure the quantizer to perform quantization, after the threshold is met, using the updated partition of the space and the updated set of quantization codewords.

In yet another aspect, the present application discloses a method for configuring a quantizer to be used for quantizing a source for transmission over a noisy channel, the noisy channel having an average symbol error probability, the quantizer being configured to perform quantization using a respective quantization codeword for each region of a partitioned quantization space. The method includes calculating an updated set of the quantization codewords based on the partition of the quantization space and on the average symbol error probability; calculating an updated partition of the quantization space into regions using the updated set of quantization codewords; repeating the calculation of the updated set of the quantization codewords and the updated partition of the quantization space until a threshold is met; and configuring the quantizer to perform quantization, after the threshold is met, using the updated partition of the space and the updated set of quantization codewords.

In a further aspect, the present application discloses a communication device having a memory, a processor, and an application that, when executed, configured the processor to perform one of the methods described above or herein.

Embodiments of the present application are not limited to any particular operating system, network architecture, server architecture, or computer programming language.

Reference is first made to FIG. 1, which shows a tandem source channel coding system 10. The system 10 includes a transmitter 24 that transmits encoded media to a receiver 26. The transmission occurs over a noisy channel 16. It will be appreciated that the transmitter 24 and receiver 26 are configured to send and receive encoded media over a physical layer. Particular embodiments may involve any one of various communications protocols or standards for establishing a communications link between the transmitter 24 and receiver 26, the details of which are not germane to the present application. In some embodiments, the transmitter 24 is part of a wireless communication device, such as a mobile phone or a wireless node, and the receiver 26 is part of a corresponding wireless communication device, such as a mobile phone or a wireless node. The present application is not limited, however, to wireless communications and is applicable to communications between any transmitter and receiver communicating encoded media over a noisy channel.

The transmitter 24 may include a processor 20 and memory 22. As will be understood by those skilled in the art, the processor 20 and memory 22 may be embodied together as a digital signal processing component. The processor 20 and memory 22 may be embodied in a general purpose microprocessor and associated memory. In some instances, the processor 20 and memory 20 are implemented outside the transmitter 24 as part of the general control/processing of a digital device, such a wireless communication device. They are shown as part of the transmitter 24 in FIG. 1 for simplicity.

The transmitter 24 includes a vector quantizer 12 that receives a vector source z and outputs a quantized codeword z_(i). The transmitter 24 also includes an index assignment module 14 that receives the quantized codewords z_(i) from the vector quantizer 12 and maps each of them to a channel symbol M_(s) using an index assignment given by π_(t). The channel symbols M_(s) are transmitted over a noisy channel 16 to the receiver 26. The receiver 26 includes a decoder 18 that, in part, uses the inverse index assignment π_(t) ⁻¹ to recover the quantized codeword from a received channel symbol M_(r).

The quantizer 12 itself may be implemented as a software-based component/module within the transmitter 24. It may be implemented on a dedicated or general purpose computing device. The source vector z represents digital media, such as, for example, audio, images, video, or other media. For example, in a wireless communication device, the source vector z may include digitized voice and/or video captured via a microphone and/or camera input device.

The transmitter 24 may include a quantizer optimization module 30. The quantizer optimization module 30 configures the quantizer 12 to use a particular codebook and partitioning when quantizing the source vector z. As will be described below, the quantizer optimization module 30 may be configured to select a codebook and partitions that achieve a minimum, or close to minimum, EED having regard to the average symbol error probability. Although FIG. 1 illustrates the quantizer optimization module 30 as a separate module within the transmitter 24, it will be understood that it may be part of the quantizer 12 or a module external to the transmitter 24. For example, it may be a software routine or module running on a processor within a wireless device containing the transmitter 24. Other possibilities will be appreciated by those skilled in the art having regard to the following description.

In the examples described herein, z is a k-dimensional real-valued vector source with a probability density function (pdf) ƒ(z) over the k-dimensional Euclidean space Λ. Without loss of generality, it is assumed that z has a zero mean. The variance of z is denoted as:

$\sigma^{2} = {\frac{1}{k}{\int_{\Lambda}{{z}^{2}{f(z)}{z}}}}$

The vector quantizer 12 defines a mapping from Λ to a set of code vectors (or codewords) called a codebook. Specifically, for an n-bit quantizer Q, its codebook is {z₁, . . . , z_(N)}, where N=2^(n) is the codebook size. The quantizer 12 partitions the whole vector space Λ into N disjoint regions, denoted as {A₁, . . . , A_(N)}, with Λ=∪_(i=1) ^(N)A_(i). The vector quantizer 12 may be understood as performing the following operation:

Q(z)=z _(i), if zεA _(i).

The noisy channel 16 is characterized by a matrix of transitional probabilities, which may be defined as:

{p(M _(r) |M _(s)),r=1, . . . , N,s=1, . . . , N}

where p(M_(r)|M_(s)) is the conditional probability that the channel outputs the rth channel symbol given the sth channel symbol is actually sent by the index assignment module 14. As an aside, the quantizer 12 and index assignment module 14 will typically be implemented as part of a transmitter configured to transmit the channel symbols via the noisy channel 16 using some physical layer transmission medium, data link protocols, etc. The present application is not limited to any particular communications protocol or transmission medium.

The index assignment module 14 applies a one-to-one mapping between code vectors {z₁, . . . , z_(N)} and channel symbols {M₁, . . . , M_(N)}. There are in total N! possible index mappings. Denote a specific index assignment mapping as π_(t), tε{1, . . . , N!}, with p_(t)(z_(j))=M_(r) and p_(t)(z_(i))=M_(s). The crossover error probabilities for quantization codewords are related to the channel transitional probabilities as p_(π) _(t) ({circumflex over (z)}=z_(j)|zεA_(i))=p(M_(r)|M_(s)), which gives the conditional probability that the receiver outputs z_(j) as a reconstruction vector given z in A_(i) is transmitted. For simplicity, the expression p_(π) _(t) ({circumflex over (z)}=z_(j)|zεA_(i)) is denoted p_(π) _(t) (z_(j)|z_(i)) hereafter. Given the index assignment mapping π_(t), the EED is defined as:

$\begin{matrix} {D_{\pi_{t}}\overset{\Delta}{=}{\sum\limits_{i = 1}^{N}{\int_{z \in _{i}}{\sum\limits_{j = 1}^{N}{{{z - z_{j}}}^{2}{p_{\pi_{t}}\left( {z_{j}z_{i}} \right)}{f(z)}{{z}.}}}}}} & (1) \end{matrix}$

From Equation (1), above, it will be appreciated that different index assignment mappings will lead to different distortion between a source z and its reconstruction {circumflex over (z)}. However, for the purposes of the analysis below a purely random index assignment mapping is assumed. If we assume random selection of the index assignment with equal probability, then the average distortion over all possible index assignments is denoted as D=E_(p)(D_(p) _(t) ). The following analysis leads to a closed-form formula for computing D for any vector quantizer 12.

EED with Random Index Assignment

If we assume a k-dimensional N-level quantizer Q with {A₁, . . . , A_(N)}, and {z₁, . . . , z_(N)}, and a noisy channel with its transitional probability matrix p(M_(r)|M_(s)), the average EED for transmitting a source z with pdf ƒ(z) over the tandem system with random index assignment is:

$\begin{matrix} {\overset{\_}{D} = {{\left( {1 - \frac{{Np}_{err}}{N - 1}} \right)D_{Q}} + {\frac{{Np}_{err}}{N - 1}s^{2}} + {\frac{{Np}_{err}}{N - 1}S_{Q}}}} & (2) \end{matrix}$

where the average symbol error probability of the channel is given by:

$p_{err}\overset{\Delta}{=}{\frac{1}{N}{\sum\limits_{s = 1}^{N}{\sum\limits_{{r = 1},{r \neq s}}^{N}{p\left( {M_{r}M_{s}} \right)}}}}$

The quantity D_(Q) in the first term of Equation (2) is the conventional quantization distortion, which is defined as:

$D_{Q}\overset{\Delta}{=}{\frac{1}{k}{\sum\limits_{i = 1}^{N}{\int_{z \in _{i}}{{{z - z_{i}}}^{2}{f(z)}{z}}}}}$

In the second term of Equation (2), the quantity s² is the source variance. The third term is a structural factor called the scatter factor of the vector quantizer. The scatter factor is defined as:

$S_{Q}\overset{\Delta}{=}{\frac{1}{k \cdot N}{\sum\limits_{j = 1}^{N}{z_{j}}^{2}}}$

Equation (2) is derived from Equation (1) as follows:

$\begin{matrix} {D_{\pi_{i}} = {\frac{1}{k}{\sum\limits_{i = 1}^{N}{\int_{z \in _{i}}{\sum\limits_{j = 1}^{N}{{{z - z_{j}}}^{2}{p_{\pi_{i}}\left( {z_{j}z_{i}} \right)}{f(z)}{z}}}}}}} \\ {= {\frac{1}{k}{\sum\limits_{i = 1}^{N}{\int_{z \in _{i}}{\sum\limits_{j = 1}^{N}{{{z - z_{i} + z_{i} - z_{j}}}^{2}{p_{\pi_{t}}\left( {z_{j}z_{i}} \right)}{f(z)}{z}}}}}}} \\ {= {{\frac{1}{k}{\sum\limits_{i = 1}^{N}{\int_{z \in _{i}}{{{z - z_{i}}}^{2}{\sum\limits_{j = 1}^{N}{{p_{\pi_{t}}\left( {z_{j}z_{i}} \right)}{f(z)}{z}}}}}}} +}} \\ {{{\frac{1}{k}{\sum\limits_{i = 1}^{N}{\sum\limits_{j = 1}^{N}{\int_{z \in _{i}}{{{z_{i} - z_{j}}}^{2}{p_{\pi_{i}}\left( {z_{j}z_{i}} \right)}{f(z)}{z}}}}}} +}} \\ {{\frac{2}{k}{\sum\limits_{i = 1}^{N}{\sum\limits_{j = 1}^{N}{\int_{z \in _{i}}{\left( {z - z_{i}} \right)\left( {z_{i} - z_{j}} \right)^{\prime}{p_{\pi_{t}}\left( {z_{j}z_{i}} \right)}{f(z)}{z}}}}}}} \\ {= {D_{Q} + {\frac{1}{k}{\sum\limits_{i = 1}^{N}{\sum\limits_{{j = 1},{j \neq i}}^{N}{\int_{z \in _{i}}{{{z_{i} - z_{j}}}^{2}{p_{\pi_{t}}\left( {z_{j}z_{i}} \right)}{f(z)}{z}}}}}} +}} \\ {{\frac{2}{k}{\sum\limits_{i = 1}^{N}{\sum\limits_{{j = 1},{j \neq i}}^{N}{\int_{z \in _{i}}{\left( {z - z_{i}} \right){p_{\pi_{t}}\left( {z_{j}z_{i}} \right)}{f(z)}{{{z\left( {z_{i} - z_{j}} \right)}^{\prime}}.}}}}}}} \end{matrix}$

In the above, all vectors are row vectors and the transpose is indicated with a prime symbol. The average distortion over all possible index assignment mappings is then equal to:

$\begin{matrix} {\overset{\_}{D} = {{E_{p}\left( D_{p_{i}} \right)} = {D_{Q} + {\frac{1}{k}{\sum\limits_{i = 1}^{N}{\sum\limits_{{j = 1},{j \neq i}}^{N}{\int_{z \in _{i}}{{{z_{i} - z_{j}}}^{2}{E_{\pi}\left( {p_{\pi_{t}}\left( {z_{j}z_{i}} \right)} \right)}{f(z)}{z}}}}}} + {\frac{2}{k}{\sum\limits_{i = 1}^{N}{\sum\limits_{{j = 1},{j \neq i}}^{N}{\int_{z \in _{i}}{\left( {z - z_{i}} \right){E_{\pi}\left( {p_{\pi_{t}}\left( {z_{j}z_{i}} \right)} \right)}{f(z)}{{{z\left( {z_{i} - z_{j}} \right)}^{\prime}}.}}}}}}}}} & (3) \end{matrix}$

Taking the average of the cross index probability over all possible index assignment mappings leads to:

$\begin{matrix} \begin{matrix} {{E_{\pi}\left( {p_{\pi_{t}}\left( {\hat{z} = {z_{j,{j \neq i}}{z \in _{i}}}} \right)} \right)} = {\frac{1}{N!}{\sum\limits_{t = 1}^{N!}{p_{\pi_{t}}\left( {\hat{z} = {z_{j,{j \neq i}}{z \in _{i}}}} \right)}}}} \\ {= {\frac{1}{N!}{\sum\limits_{s = 1}^{N}{\sum\limits_{{r = 1},{r \neq s}}^{N}{{p\left( {M_{r}M_{s}} \right)}{\left( {N - 2} \right)!}}}}}} \\ {= {\frac{1}{N - 1}p_{err}}} \end{matrix} & (4) \end{matrix}$

Plugging Equation (4) into Equation (3) yields:

$\begin{matrix} {\overset{\_}{D} = {D_{Q} + {\frac{1}{k}\frac{p_{err}}{N - 1}\left( {\sum\limits_{i = 1}^{N}{\sum\limits_{{j - 1},{j \neq 1}}^{N}{\int_{z \in A_{i}}{{{z_{i} - z_{j}}}^{2}{f(z)}{z}}}}} \right)} +}} \\ {{\frac{1}{k}\frac{p_{err}}{N - 1}\left( {2{\sum\limits_{i = 1}^{N}{\sum\limits_{{j = 1},{j \neq i}}^{N}{\int_{z \in _{i}}{\left( {z - z_{i}} \right){f(z)}{{z\left( {z_{i} - z_{j}} \right)}^{\prime}}}}}}} \right)}} \\ {= {D_{Q} + {\frac{1}{k}\frac{p_{err}}{N - 1}\begin{pmatrix} {{N{\sum\limits_{i = 1}^{N}{{z_{i}}^{2}{p\left( {z \in _{i}} \right)}}}} + {\sum\limits_{j = 1}^{N}{z_{j}}^{2}} -} \\ {2{\sum\limits_{i = 1}^{N}{z_{i}{p\left( {z \in _{i}} \right)}{\sum\limits_{j = 1}^{N}z_{j}^{\prime}}}}} \end{pmatrix}} +}} \\ {{\frac{1}{k}\frac{p_{err}}{N - 1}\begin{pmatrix} \begin{matrix} {{2N{\sum\limits_{i = 1}^{N}{\int_{z \in _{i}}{{{zf}(z)}{{zz}_{i}^{\prime}}}}}} -} \\ {{2{\sum\limits_{i = 1}^{N}{\int_{z \in _{i}}{{{zf}(z)}{z}{\sum\limits_{j = 1}^{N}z_{j}^{\prime}}}}}} -} \end{matrix} \\ {{2N{\sum\limits_{i = 1}^{N}{{z_{i}}^{2}{p\left( {z \in _{i}} \right)}}}} + {2{\sum\limits_{i = 1}^{N}{z_{i}{p\left( {z \in _{i}} \right)}{\sum\limits_{j = 1}^{N}z_{j}^{\prime}}}}}} \end{pmatrix}}} \\ {\overset{1}{=}{D_{Q} + {\frac{1}{k}\frac{p_{err}}{N - 1}\begin{pmatrix} {{\sum\limits_{j = 1}^{N}{z_{j}}^{2}} - {N{\sum\limits_{i = 1}^{N}{{z_{i}}^{2}p\left( {z \in _{i}} \right)}}} +} \\ {2N{\sum\limits_{i = 1}^{N}{\int_{z \in _{i}}{{{zf}(z)}{{z} \cdot z_{i}^{\prime}}}}}} \end{pmatrix}}}} \\ {\overset{2}{=}{D_{Q} + {\frac{1}{k}\frac{p_{err}}{N - 1}\left( {{\sum\limits_{j = 1}^{N}{z_{j}}^{2}} + {N\left( {{k\; \sigma^{2}} - {kD}_{Q}} \right)}} \right)}}} \\ {= {{\left( {1 - \frac{{Np}_{err}}{N - 1}} \right)D_{Q}} + {\frac{{Np}_{err}}{N - 1}\sigma^{2}} + {\frac{{Np}_{err}}{N - 1}S_{Q}}}} \end{matrix}$

where 1 is due to the zero mean assumption so that

${\sum\limits_{i = 1}^{N}{\int_{z \in A_{i}}{{{zf}(z)}{z}}}} = 0$

and 2 results from a rewriting of the definition of D_(Q), that is,

$D_{Q} = {\sigma^{2} - {\frac{2}{k}{\sum\limits_{i = 1}^{N}{\int_{z \in _{i}}{{{zf}(z)}{{z} \cdot z_{i}^{\prime}}}}}} + {\frac{1}{k}{\sum\limits_{i = 1}^{N}{{z_{i}}^{2}{{p\left( {z \in _{i}} \right)}.}}}}}$

From Equation (2) it will be noted that the EED comes from three terms: the quantization distortion, the joint impact of channel noise and the source variance, and the joint term of channel noise and the scatter factor of the quantization codebook. Among the three, the scatter factor term S_(Q) is interesting and new; it represents the energy of the quantization codebook. Intuitively, the more the quantization codewords scatter away from the source mean, the more contribution comes from the channel noise to the EED.

It will be appreciated that Equation (2) is valid for any vector quantizer with random index assignment. From Equation (2), it is also now clear that minimizing D_(Q) alone does not necessarily reduce the EED. To minimize the EED, a vector quantizer should be configured such that its codewords are spread widely enough to make D_(Q) small, and at the same time are closely concentrated around the source mean to make S_(Q) small. It will be appreciated that the optimal solution will be the selection of a partition space and set of codewords that balances these two objectives to achieve a minimum EED.

The attempt to find an optimal set of codewords and an optimal partitioning of the space is a minimization problem. As will be described below, the solution to the minimization problem results in two necessary conditions to be satisfied by an optimal vector quantizer 12.

To find the optimal minimization of EED, define a k-dimensional N-level quantizer Q with its partition Γ={A₁, . . . , A_(N)} and its codebook ψ={z₁, . . . , z_(N)}, where

∪_(i=1) ^(N) A _(i)=Λ,∫_(A) _(i∩) _(A) _(j) f(z)dz=0 for i≠j,

and each z_(i) is used to represent all points in A_(i). The problem of designing an optimal noisy channel VQ can now be formulated equivalently as the following minimization problem:

$\begin{matrix} {\min\limits_{\Psi}{\min\limits_{\Gamma}{\left\{ {{\left( \frac{{Np}_{err}}{N - 1} \right)D_{Q}} + {\frac{{Np}_{err}}{N - 1}\sigma^{2}} + {\frac{{Np}_{err}}{N - 1}S_{Q}}} \right\}.}}} & (5) \end{matrix}$

From the minimization problem defined in Equation (5) the following two conditions may be derived:

$\begin{matrix} {{{1.\mspace{14mu} z_{i}} = \frac{\int_{z \in _{i}}{{{zf}(z)}{z}}}{{p\left( {z \in _{i}} \right)} + \frac{p_{err}}{N - 1 - {N \cdot p_{err}}}}},{i = 1},\ldots \mspace{14mu},{N.}} & (6) \\ {{{2.\mspace{14mu} _{i}} = \left\{ {{z:{{{z - z_{i}}}^{2} \leq {{z - z_{j}}}^{2}}},{{{for}\mspace{14mu} {all}\mspace{14mu} j} \neq i}} \right\}},{i = 1},\ldots \mspace{14mu},{N.}} & (7) \end{matrix}$

The two conditions given in Equations (6) and (7) are found from the minimization expression of Equation (5) in the following manner. Given the partition {A₁, . . . , A_(N)}, Equation (6) may be found by setting

$\frac{\partial\overset{\_}{D}}{\partial z_{i}} = 0.$

In particular,

$\begin{matrix} {\frac{\partial\overset{\_}{D}}{\partial z_{i}} = {{{\left( {1 - \frac{{Np}_{err}}{N - 1}} \right)\frac{\partial D_{Q}}{\partial z_{i}}} + {\frac{{Np}_{err}}{N - 1}\frac{\partial S_{Q}}{\partial z_{i}}}} = {\left( {1 - \frac{{Np}_{err}}{N - 1}} \right)\frac{\partial}{\partial z_{i}}{\quad{{\left( {\sigma^{2} - {\frac{2}{k}{\sum\limits_{j = 1}^{N}{\int_{z \in _{j}}{{{zf}(z)}{{z} \cdot z_{j}^{\prime}}}}}} + {\frac{1}{k}{\sum\limits_{j = 1}^{N}{{z_{j}}^{2}{p\left( {z \in _{j}} \right)}}}}} \right) + {2z_{i}\frac{1}{k}\frac{p_{err}}{N - 1}}} = {{\left( {1 - \frac{{Np}_{err}}{N - 1}} \right)\frac{1}{k}\left( {{{- 2}{\int_{z \in _{i}}{{{zf}(z)}{z}}}} + {2{z_{i} \cdot {p\left( {z \in _{i}} \right)}}}} \right)} + {\frac{2}{k}z_{i}{\frac{p_{err}}{N - 1}.}}}}}}}} & (8) \end{matrix}$

If we let

$\frac{\partial\overset{\_}{D}}{\partial z_{i}} = 0$

in the above expression, the result is Equation (6).

It will be noted that, given the codebook {z₁, . . . , z_(N)}, the scatter factor S_(Q) does not depend on the partition. Applying the nearest neighbor rule then yields Equation (7).

It will be noted that Equation (6) tends to force codewords towards the origin so as to make the scatter factor smaller. Equation (7) is independent of the channel, and Equation (6) depends on the channel only through the average symbol error probability p_(err). These conditions do not require complete knowledge of the channel, i.e. all transitional probabilities.

Methods for Configuring a Vector Quantizer

Having derived the two conditions reflected in Equations (6) and (7) for minimizing EED, we present below example methods for configuring a vector quantizer based on these two equations. The example methods are iterative processes in which the codebook and partitions are updated alternately and iteratively until an update fails to improve the EED (or a related variable) by more than a threshold amount.

Reference is now made to FIG. 2, which shows, in flowchart form, an example method 100 of configuring a quantizer. The method 100 begins in step 102 with setting a value for the average symbol error probability p_(err). Then in step 104, the codebook {z₁, . . . , z_(N)} and partition space {A₁, . . . , A_(N)} are initialized. In one embodiment, at the physical layer, one may obtain an estimate of p_(err) from the transmission or signal power; it can also be obtained from adaptive channel coding schemes. The average symbol error probability p_(err) is a channel parameter. Empirically, it may be estimated by feeding a number of symbols into the channel, counting the number of erroneously received symbols and computing the ratio. The initialization of the codebook and partition is related to the convergence of the algorithm. For scalar quantization case, the initialization can be arbitrary. In the general case, in one embodiment the output of a Lloyd-Max algorithm as the initialization.

Steps 106 and 108 are performed alternately and iteratively. In step 106, an update to the codebook {z₁, . . . , z_(N)} is calculated based on the current partition {A₁, . . . , A_(N)} and the average symbol error probability p_(err). In step 108, the updated codebook is used to calculate an updated partition.

In step 110, a quantity is evaluated based on at least the updated codebook. If the quantity has changed/improved by at least a threshold amount, then the method 100 goes back to step 106 to repeat the updates. If the quantity has not improved by more than a threshold amount, then the method 100 continues to step 112, where the quantizer is configured using the updated versions of the codebook {z₁, . . . , z_(N)} and partition {A₁, . . . , A_(N)}.

In one embodiment the quantity evaluated in step 110 is the EED. The EED may be calculated, for example using Equation (2), and compared to the EED from the previous iteration. If there has not been at least a threshold change in the EED from the previous iteration then the method 110 goes to step 112 and uses the current updated codebook and partition for quantization.

In another embodiment, the quantity evaluated in step 110 is the sum of the magnitude of the changes in the updated codewords. For example, the following expression could be used:

$s = {\frac{1}{N}{\sum\limits_{i = 1}^{N}{{z_{i}^{t + 1} - z_{i}^{t}}}^{2}}}$

Where s represents the average change in magnitude of the updated codewords. In step 110, the quantity s may be compared with a predetermined threshold and, if it has not changed by more than the predetermined threshold, the iterative loop is ended and the method 100 goes to step 112.

Those skilled in the art will appreciate the other quantities that may be evaluated in step 110 to determine whether to stop the iterative loop because no further appreciable gains will be realized.

With specific reference to Equations (6) and (7) determined above, an example embodiment of the method 100 may be described as follows. The following example embodiment of the method may be referred to as the “greedy iterative” method.

The space is partitioned as Γ={A₁, . . . , A_(N)} and the codebook is defined as ψ={z₁, . . . , z_(N)}. An index value t is initialized as t=1. In step 102, the average symbol error probability P_(err) is determined, measured, or otherwise selected. In step 104, the initial values for the codebook and partition are selected as {z₁ ⁽¹⁾, . . . , z_(N) ⁽¹⁾} and {A₁ ⁽¹⁾, . . . , A_(N) ⁽¹⁾}, respectively. Based on these initial values, the EED, or the average EED D ⁽¹⁾, is calculated. The calculation of average EED may be based on Equation (2), for example.

In step 106, given the partition {A₁ ⁽¹⁾, . . . , A_(N) ⁽¹⁾}, the codebook is updated in accordance with the Equation (6) for t=t+1 as follows:

$\begin{matrix} {{z_{i}^{({t + 1})} = \frac{\int_{z \in _{i}^{(t)}}{{{zf}(z)}{z}}}{{p\left( {z \in _{i}^{(t)}} \right)} + \frac{p_{err}}{N - 1 - {N \cdot p_{err}}}}},{i = 1},\ldots \mspace{14mu},{N.}} & (9) \end{matrix}$

Then, in step 108, given the updated codebook {z₁ ^((t+1)), . . . , z_(N) ^((t−1))}, the partition is updated in accordance with Equation (7) for t=t+1 as follows:

A _(i) ^((t+1)) ={z:|z−z _(i) ^((t+1))|² ≦|z−z _(j) ^((t+1))|², for all j≠i}, i=1, . . . , N.  (10)

In step 110, the average EED for t=t+1, D ^((t+1)), is calculated. If the improvement in EED, given by D ^((t))− D ^((t+1)) fails to meet a predefined threshold level, then the updated partition {A₁ ^((t+1)), . . . , A_(N) ^((t+1))} and updated codebook {z₁ ^((t+1)), . . . , z_(N) ^((t+1))} are recorded and used to configure the quantizer.

The quantizer so configured may then be used to process/quantize the source vector z in accordance with the recorded partition and codebook. The quantizer outputs the quantized source vector, which, as shown in FIG. 1, is then mapped through an index assignment into channel symbols which are then transmitted through the noisy channel.

Those skilled in the art will recognize from the present description that the above-described “greedy iterative” method may result in an updated z_(i) at step 106 that does not fall within A_(i), especially when

$\frac{p_{err}}{N - 1 - {N \times p_{err}}}$

is greater than p(zεA_(i)). Reference is now made to FIG. 3, which shows a graph 150 for a partition and codebook at some step in the above iterative process when applied to a one-dimensional Gaussian source with zero mean and unit variance and a noisy channel with p_(err)=0.05. The horizontal axis of the graph 150 shows the partition, while the dots and arrows represent the updating of the quantization outputs z_(i) given the partition. As shown by the arrows, there are three partition sets, for which the respective updated quantization output points are brought outside each respective set, i.e., the first, second, and the last. Therefore, the subsequent alternating steps will make {z₁, . . . , z₈} and {A₁, . . . , A₈} appear in random order along the horizontal line. This in turn will make it difficult to analyze the convergence of the corresponding sequence of quantizers.

To address this issue, the “greedy iterative” method can be adapted by imposing the condition that z_(i) ^((t+1))εA_(i) ^((t)), which leads to a “controlled iterative” method of configuring the quantizer. When this condition is imposed we cannot find the closed-form solution represented by Equation (9). Rather, we arrive at the following expression for updating the codebook:

$\begin{matrix} {z_{i}^{({t + 1})} = {{\arg {\min\limits_{\hat{z} \in _{i}^{(t)}}{\left( {1 - \frac{{Np}_{err}}{N - 1}} \right){\int_{z \in _{i}^{(t)}}{{{z - \hat{z}}}^{2}{f(z)}{z}}}}}} + {\frac{p_{err}}{N - 1}{{\hat{z}}^{2}.}}}} & (11) \end{matrix}$

We arrive at Equation (11) by way of the following constrained optimization problem:

${{\min\limits_{z_{i},{i = 1},\mspace{11mu} \ldots \mspace{14mu},N}{\overset{\_}{D}\mspace{14mu} {subject}\mspace{14mu} {to}\mspace{14mu} z_{i}}} \in A_{i}},{i = 1},\ldots \mspace{14mu},N$

The solution to this problem will be Equation (6) only if there exists a point within A_(i) such that

$\frac{\partial\overset{\_}{D}}{\partial z_{i}} = 0.$

Note that the objective function in (11) is actually a convex function with respect to {circumflex over (z)}. Therefore, one can apply a standard method to solve this constrained convex optimization problem. In practise, however, one can further use the following simplified method to update z_(i) ^((t)) in step 106 of the “controlled iterative” method. If:

$\frac{\int_{z \in _{i}^{(t)}}{{{zf}(z)}{z}}}{{p\left( {z \in _{i}^{(t)}} \right)} + \frac{p_{err}}{N - 1 - {N \cdot p_{err}}}}$

lies in A_(i) ^((t)), then update z_(i) ^((t)) according to (9); otherwise, compute the point at the intersection between the boundary of A_(i) ^((t)) and the line segment connecting z_(i) ^((t)) and:

$\frac{\int_{z \in _{i}^{(t)}}{{{zf}(z)}{z}}}{{p\left( {z \in _{i}^{(t)}} \right)} + \frac{p_{err}}{N - 1 - {N \cdot p_{err}}}}$

and take that point as z_(i) ^((t+1)).

Note that both the greedy iterative method and the controlled iterative method converge in the sense that the sequences of D ^((t)) are non-increasing as t→∞.

It will be appreciated that the foregoing methods and quantizers may be configured upon provisioning/installation based on a predefined source vector z. In some embodiments, the quantizer is reconfigured for each source vector z. In other embodiments, the quantizer is reconfigured if a change is expected or detected in the characteristics of the noisy channel through which the quantizer/transmitter will be sending data. Other circumstances in which it would be advantageous to use the described methods/processes to configured a quantizer will be appreciated by those ordinarily skilled in the art.

It will be understood that the quantizer described herein and the module, routine, process, thread, or other software component implementing the described method/process for configuring the quantizer may be realized using standard computer programming techniques and languages. The present application is not limited to particular processors, computer languages, computer programming conventions, data structures, other such implementation details. Those skilled in the art will recognize that the described processes may be implemented as a part of computer-executable code stored in volatile or non-volatile memory, as part of an application-specific integrated chip (ASIC), etc.

Certain adaptations and modifications of the described embodiments can be made. Therefore, the above discussed embodiments are considered to be illustrative and not restrictive. 

1. A method for configuring a quantizer to be used for quantizing a source for transmission over a noisy channel, the noisy channel having an average symbol error probability, the quantizer being configured to perform quantization using a respective quantization codeword for each region of a partitioned quantization space, the method comprising: calculating an updated set of the quantization codewords based on the partition of the quantization space and on the average symbol error probability; calculating an updated partition of the quantization space into regions using the updated set of quantization codewords; repeating the calculation of the updated set of the quantization codewords and the updated partition of the quantization space until a threshold is met; and configuring the quantizer to perform quantization, after the threshold is met, using the updated partition of the space and the updated set of quantization codewords.
 2. The method claimed in claim 1, wherein the threshold is met if an incremental change in the updated codewords is smaller than a preselected value.
 3. The method claimed in claim 1, further including calculating distortion based on the updated quantization codewords for each iteration, and wherein the threshold is met if the incremental change in the distortion is smaller than a preselected value.
 4. The method claimed in claim 1, wherein calculating an updated set of the quantization codewords, comprises, for each codeword, calculating the mean of the source within the respective region of the partitioned quantization space, and wherein the calculation of the mean of the source includes the average symbol error probability as a factor.
 5. The method claimed in claim 4, wherein calculating the mean of the source vector includes applying a condition that each updated codeword lie within its respective i^(th) region of the partitioned quantization space.
 6. The method claimed in claim 1, wherein calculating an updated set of the quantization codewords comprises finding, for each region i, an updated codeword z_(i) in accordance with: ${z_{i}^{({t + 1})} = \frac{\int_{z \in _{i}^{(t)}}{{{zf}(z)}{z}}}{{p\left( {z \in _{i}^{(t)}} \right)} + \frac{p_{err}}{N - 1 - {N \cdot p_{err}}}}},{i = 1},\ldots \mspace{14mu},{N.}$ wherein t is an index of the iteration, p_(err) is the average symbol error probability, ƒ(z) is the probability density function of the source, A_(i) ^((t)) is region i, and p(zεA_(i) ^((t))) is the probability that the source lies within the region i.
 7. The method claimed in claim 6, wherein the probability density function ƒ(z) is estimated from the empirical distribution of the source and p(zεA_(i) ^((t))) is the percentage of the source in the region A_(i).
 8. The method claimed in claim 1, wherein calculating an updated set of the quantization codewords comprises finding, for each region A_(i), an updated codeword z_(i) in accordance with: $z_{i}^{({t + 1})} = {{\arg {\min\limits_{\hat{z} \in _{i}^{(t)}}{\left( {1 - \frac{{Np}_{err}}{N - 1}} \right){\int_{z \in _{i}^{(t)}}{{{z - \hat{z}}}^{2}{f(z)}{z}}}}}} + {\frac{p_{err}}{N - 1}{{\hat{z}}^{2}.}}}$ wherein t is an index of the iteration, p_(err) is the average symbol error probability, ƒ(z) is the probability density function of the source vector, A_(i) ^((t)) is the i-th region, and {circumflex over (z)} is any codeword in A_(i).
 9. The method claimed in claim 1, further comprising quantizing the source using the configured quantizer to generate a quantized source based on the updated partition of the quantization space and the updated set of quantization codewords.
 10. The method claimed in claim 9, further comprising transmitting the quantized source.
 11. A communications device for coding and transmitting a source to a remote location over a noisy channel, the noisy channel having an average symbol error probability, the communications device comprising: a memory; a processor; a quantization application configured to perform quantization using a respective quantization codeword for each region of a partitioned quantization space, wherein the quantization application, when executed by the processor, configures the processor to: calculate an updated set of the quantization codewords based on the partition of the quantization space and on the average symbol error probability; calculate an updated partition of the quantization space into regions using the updated set of quantization codewords; repeat the calculation of the updated set of the quantization codewords and the updated partition of the quantization space until a threshold is met; and configure the quantizer to perform quantization, after the threshold is met, using the updated partition of the space and the updated set of quantization codewords.
 12. The communications device claimed in claim 11, wherein the threshold is met if an incremental change in the updated codewords is smaller than a preselected value.
 13. The communications device claimed in claim 11, wherein the processor is further configured to calculate distortion based on the updated quantization codewords for each iteration, and wherein the threshold is met if the incremental change in the distortion is smaller than a preselected value.
 14. The communications device claimed in claim 11, wherein the processor is configured to calculate an updated set of the quantization codewords by, for each codeword, calculating the mean of the source within the respective region of the partitioned quantization space, and wherein the calculation of the mean of the source includes the average symbol error probability as a factor.
 15. The communications device claimed in claim 14, wherein the processor is configured to calculate the mean of the source vector by applying a condition that each updated codeword lie within its respective i^(th) region of the partitioned quantization space.
 16. The communications device claimed in claim 11, wherein the processor is configured to calculate an updated set of the quantization codewords by finding, for each region i, an updated codeword z_(i) in accordance with: ${z_{i}^{({t + 1})} = \frac{\int_{z \in _{i}^{(t)}}{{{zf}(z)}{z}}}{{p\left( {z \in _{i}^{(t)}} \right)} + \frac{p_{err}}{N - 1 - {N \cdot p_{err}}}}},{i = 1},\ldots \mspace{14mu},{N.}$ wherein t is an index of the iteration, p_(err) is the average symbol error probability, ƒ(z) is the probability density function of the source, A_(i) ^((t)) is region i, and p(zεA_(i) ^((t))) is the probability that the source lies within the region i.
 17. The communications device claimed in claim 16, wherein the probability density function ƒ(z) is estimated from the empirical distribution of the source and p(zεA_(i) ^((t))) is the percentage of the source in the region A_(i).
 18. The communications device claimed in claim 11, wherein the processor is configured to calculate an updated set of the quantization codewords by finding, for each region A_(i), an updated codeword z_(i) in accordance with: $z_{i}^{({t + 1})} = {{\arg {\min\limits_{\hat{z} \in _{i}^{(t)}}{\left( {1 - \frac{{Np}_{err}}{N - 1}} \right){\int_{z \in _{i}^{(t)}}{{{z - \hat{z}}}^{2}{f(z)}{z}}}}}} + {\frac{p_{err}}{N - 1}{{\hat{z}}^{2}.}}}$ wherein t is an index of the iteration, p_(err) is the average symbol error probability, ƒ(z) is the probability density function of the source vector, A_(i) ^((t)) is the i-th region, and {circumflex over (z)} is any codeword in A_(i).
 19. The communications device claimed in claim 11, wherein the processor is further configured to quantize the source to generate a quantized source using the updated partition of the quantization space and the updated set of quantization codewords.
 20. The communications device claimed in claim 11, further comprising an antenna and a wireless communications subsystem. 